Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Propagate delete events in shared streams #1673

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Danil-Grigorev
Copy link
Member

Motivation

Current implementation of shared stream controllers does not account for Delete events.

Ref: #1590

Solution

Add Delete event processing, with support for removing object from cache after all streams received the final object in a deletion event.

Signed-off-by: Danil-Grigorev <[email protected]>
Signed-off-by: Danil-Grigorev <[email protected]>
Signed-off-by: Danil-Grigorev <[email protected]>
Copy link

codecov bot commented Dec 28, 2024

Codecov Report

Attention: Patch coverage is 84.21053% with 6 lines in your changes missing coverage. Please review.

Project coverage is 75.9%. Comparing base (6a980c6) to head (61a9766).

Files with missing lines Patch % Lines
kube-runtime/src/reflector/object_ref.rs 0.0% 6 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##            main   #1673     +/-   ##
=======================================
+ Coverage   75.9%   75.9%   +0.1%     
=======================================
  Files         84      84             
  Lines       7611    7638     +27     
=======================================
+ Hits        5771    5797     +26     
- Misses      1840    1841      +1     
Files with missing lines Coverage Δ
kube-runtime/src/reflector/dispatcher.rs 97.7% <100.0%> (+1.4%) ⬆️
kube-runtime/src/reflector/store.rs 97.3% <100.0%> (+0.4%) ⬆️
kube-runtime/src/reflector/object_ref.rs 66.1% <0.0%> (-1.9%) ⬇️

Signed-off-by: Danil-Grigorev <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant